package com.zzh.ideas.web.wrapper;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import javax.servlet.http.HttpSession;

/**
 * description： <br>
 * createTime: 2018/3/1310:59 <br>
 *
 * @author zzh
 */
public class RequestWrapper extends HttpServletRequestWrapper {

    HttpSession session;

    public RequestWrapper(HttpServletRequest request) {
        super(request);
        session = new SessionWrapper(super.getSession());
    }


    @Override
    public HttpSession getSession() {
        return session;
    }
}
